import request from '@/utils/request'

// 查询项目主机列表
export function listHost(query) {
  return request({
    url: '/business/examHosts',
    method: 'get',
    params: query
  })
}

// 查询考点列表
export function getExamPlaces() {
  return request({
    url: '/business/examPlaces/list',
    method: 'get'
  })
}

// 查询考试项目列表
export function getExamProjects() {
  return request({
    url: '/business/examProjects/list',
    method: 'get'
  })
}

// 新增项目主机
export function addHost(data) {
  return request({
    url: '/business/examHosts',
    method: 'post',
    data: data
  })
}


// 删除项目主机
export function delHost(id) {
  return request({
    url: '/business/examHosts/' + id,
    method: 'delete'
  })
}
